STEP 7: If the message's letter is in the alphabet, we need to know that letter's position in the alphabet (a = 1, b = 2).

  • From , drag If In indented inside the loop. This should be indented two times in total.
  • In the if-statement, change my_var to letter and change my_list to alphabet.
  • From , drag Get Index of Value indented inside the if statement. Indent three times in total!
  • Chance my_var to alpha_index, change my_list to alphabet, and change my_param to letter.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)